package app

import "github.com/spf13/cobra"

var root = &cobra.Command{
	Use: "app",
	Run: func(cmd *cobra.Command, args []string) {
		if err := cmd.Usage(); err != nil {
			panic(err)
		}
	},
}

type Application struct {
	root *cobra.Command
}

func NewApplication() *Application {
	return &Application{
		root: root,
	}
}
func (app *Application) Start() error {
	return root.Execute()
}
